package com.celesea.auth.user.dao;

import com.celesea.auth.user.entity.User;
import com.celesea.framework.dao.BaseDao;
import com.celesea.framework.dao.Filter;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JackYuan
 * @create 2017-10-30 22:58
 */
public interface UserDao extends BaseDao<User> {

    List<String> selectPyChars(@Param("filter") Filter filter);

    List<User> selectByDeptPosition(
            @Param("tenantId") String tenantId,
            @Param("deptId") String deptId,
            @Param("positionCode") String positionCode);

    List<User> selectByRole(@Param("tenantId") String tenantId, @Param("roleId") String roleId);

    List<User> selectByGroup(@Param("tenantId") String tenantId, @Param("groupId") String groupId);
}
